﻿using Microsoft.EntityFrameworkCore;
using SmartCity.ProcessEngine.API.Domain;
using SmartCity.ProcessEngine.API.Infrastructrue.Migrations;

namespace SmartCity.ProcessEngine.API.Infrastructrue
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class MyDbcontext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options">选项</param>
        public MyDbcontext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 表单分类实体
        /// </summary>
        public DbSet<WF_FromType> fromTypes { get; set; }
        /// <summary>
        /// 行业实体
        /// </summary>
        public DbSet<Industry> industries { get; set; }
        /// <summary>
        /// 表单
        /// </summary>
        public DbSet<WF_Form> forms { get; set; }
        /// <summary>
        /// 注册表单明细实体类
        /// </summary>
        public DbSet<WF_FormDetail> formsDetail { get; set; }
        /// <summary>
        /// 注册节点实体类
        /// </summary>
        public DbSet<WF_Node> nodes { get; set; }
    }
}
